<template>
  <div id="app">
    <vheader></vheader>
    <div class="warpBg">
        <vleft></vleft>
        <router-view class="main"></router-view>
    </div>
    <vloading class="allLoad" v-if="allLoad"></vloading>
    <vlogin v-if='!login'></vlogin>
  </div>
</template>

<script>
import vheader from '@/components/Header.vue'
import vloading from '@/components/loading.vue'
import vleft from '@/components/Left.vue'
import vlogin from '@/components/Login.vue'
import {mapState} from 'vuex'
export default {
  name: 'app',
  data(){
    return{
      loginStart:true
    }
  },
  mounted(){
    this.Check()
  },
  computed: {
    ...mapState(['login','allLoad'])
  },
  components:{
    vheader,vleft,vlogin,vloading
  }
}
</script>
